<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>权限列表</title>
    <link rel="stylesheet" href="/static/assets/layui-v2.5.6/css/layui.css">
    <link rel="stylesheet" href="/static/css/custom/layui.css">
    <style>
        .demo-tree-more{
            border: 1px solid #D2D2D2;
        }
    </style>
</head>
<body>
<div class="container">
    <form class="layui-form" id="queryForm">
        <div class="layui-form-item">
            <div>
                <label class="layui-form-label">权限信息：</label>
                <div class="layui-input-inline">
                    <input name="permissionSearchContent" type="text" class="layui-input" autocomplete="off"
                           placeholder="名称，编码，路径">
                </div>
            </div>
            <div>
                <button class="layui-btn layui-btn-normal" id="btnSearch">
                    <i class="layui-icon layui-icon-search"></i>搜索
                </button>
                <button class="layui-btn layui-btn-primary v-top" id="btnReset">
                    <i class="layui-icon layui-icon-fonts-clear"></i>清空
                </button>
                <button class="layui-btn layui-btn-normal" type="button" id="btnAdd">
                    <i class="layui-icon layui-icon-add-1"></i>新增
                </button>
                <button class="layui-btn layui-btn" type="button" id="btnUpdate">
                    <i class="layui-icon layui-icon-edit"></i>修改
                </button>
                <button class="layui-btn layui-btn-danger" type="button" id="btnDelete">
                    <i class="layui-icon layui-icon-delete"></i>删除
                </button>
            </div>
        </div>
    </form>
    <div class="data_table">
        <table class="layui-hide" id="datagrid" lay-filter="datagrid"
               lay-data="{id: &#39;datagrid&#39;}" lay-size="sm"></table>
    </div>
    <#--编辑表单-->
    <div id="dataModel" class="data-model">
        <form class="layui-form" action="">
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">权限名称</label>
                    <div class="layui-input-inline">
                        <input type="text" name="permissionName" lay-verify="required" autocomplete="off"
                               placeholder="请输入权限名称"
                               class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">权限编码</label>
                    <div class="layui-input-inline">
                        <input type="text" name="permissionCode" lay-verify="required" autocomplete="off"
                               placeholder="请输入权限编码"
                               class="layui-input">
                    </div>
                </div>


            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">请求方式</label>
                    <div class="layui-input-inline">
                        <select name="menuSysId" lay-filter="required">
                            <option value="">请选择请求方式</option>
                            <option value="1">GET</option>
                            <option value="2">POST</option>
                            <option value="3">PUT</option>
                            <option value="4">DELETE</option>
                        </select>
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">权限url</label>
                    <div class="layui-input-inline">
                        <input type="text" name="permissionUrl" placeholder="请输入权限跳转url"
                               autocomplete="off"
                               class="layui-input">
                    </div>
                </div>

            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">所属菜单</label>
                    <div class="layui-input-inline">
                        <div id="ofMenu" class="demo-tree-more"></div>
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">已选</label>
                    <div class="layui-input-inline">
                        <input type="number" style="display: none" id="permissionOfMenuId" name="permissionOfMenuId" placeholder="" autocomplete="off"
                               class="layui-input">
                        <input type="text" name="permissionOfMenuName" id="permissionOfMenuName" placeholder="" autocomplete="off"
                               class="layui-input">
                    </div>
                </div>
            </div>

            <div class="layui-form-item btn-opt">
                <div class="layui-input-block">
                    <button type="submit" id="formSubmitBtn" class="layui-btn" lay-submit="form_submit_btn"
                            lay-filter="form_submit_btn">确定
                    </button>
                </div>
            </div>
        </form>
    </div>
</div>
<script type="text/javascript" src="/static/assets/jquery/jquery-3.5.1.js"></script>
<script type="text/javascript" src="/static/assets/layui-v2.5.6/layui.js"></script>
<script type="text/javascript" src="/static/js/page.js"></script>
<script type="text/javascript" src="/static/js/base_system/permission.js"></script>
</body>
</html>